package com.heneng.bluetoothdemo;

import android.text.TextUtils;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * @author lzl
 * @date 2019/3/20
 */
//@SmartTable()
public class PrintEvent implements Serializable {

    public int getPrint_type() {
        return print_type;
    }

    public void setPrint_type(int print_type) {
        this.print_type = print_type;
    }

    int print_type;

    //机动车
    String location;
    //    @SmartColumn(id =2,name = "时间")
    @JSONField(name = "test_time")
    String time;
    //    @SmartColumn(id =3,name = "黑度")
    String heidu;
    //    @SmartColumn(id =4,name = "车牌号码")
    String plate_num;
    //    @SmartColumn(id =5,name = "车辆类型")
    String vehicle_type;
    String owner;
    String use_character;
    String addr;

    String address;
    String model;
    String vin;
    String engine_num;
    String register_date;
    String issue_date;
    String driver_way;
    String modify = "查看";
    String uuid;

    String temperature;
    String humidity;
    String wind_force;
    String wind_direction;

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getHumidity() {
        return humidity;
    }

    public void setHumidity(String humidity) {
        this.humidity = humidity;
    }

    public String getWind_force() {
        return wind_force;
    }

    public void setWind_force(String wind_force) {
        this.wind_force = wind_force;
    }

    public String getWind_direction() {
        return wind_direction;
    }

    public void setWind_direction(String wind_direction) {
        this.wind_direction = wind_direction;
    }

    public String getDriver_way() {
        return driver_way;
    }

    public void setDriver_way(String driver_way) {
        this.driver_way = driver_way;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPlate_num() {
        return plate_num;
    }

    public void setPlate_num(String plate_num) {
        this.plate_num = plate_num;
    }

    public String getVehicle_type() {
        return vehicle_type;
    }

    public void setVehicle_type(String vehicle_type) {
        this.vehicle_type = vehicle_type;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getUse_character() {
        return use_character;
    }

    public void setUse_character(String use_character) {
        this.use_character = use_character;
    }

//    public String getAddress() {
//        return address;
//    }

    public String getAddress() {
        if (TextUtils.isEmpty(addr)) {
            if(TextUtils.isEmpty(address)) {
                return "";
            }
            return address;
        }
        return addr;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getEngine_num() {
        return engine_num;
    }

    public void setEngine_num(String engine_num) {
        this.engine_num = engine_num;
    }

    public String getRegister_date() {
        return register_date;
    }

    public void setRegister_date(String register_date) {
        this.register_date = register_date;
    }

    public String getIssue_date() {
        return issue_date;
    }

    public void setIssue_date(String issue_date) {
        this.issue_date = issue_date;
    }

    public void setHeidu(String heidu) {
        this.heidu = heidu;
    }

    public String getHeidu() {
        return heidu;
    }

    public String getModify() {
        return modify;
    }

    public void setModify(String modify) {
        this.modify = modify;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    //非道路移动机械
    String brand;//品牌
    //    String model;//型号
    String type;//类型
    String num;//编号

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "PrintEvent{" + "print_type=" + print_type + ", location='" + location + '\'' + ", time='" + time + '\'' + ", heidu='" + heidu + '\'' + ", plate_num='" + plate_num + '\'' + ", vehicle_type='" + vehicle_type + '\'' + ", owner='" + owner + '\'' + ", use_character='" + use_character + '\'' + ", address='" + address + '\'' + ", model='" + model + '\'' + ", vin='" + vin + '\'' + ", engine_num='" + engine_num + '\'' + ", register_date='" + register_date + '\'' + ", issue_date='" + issue_date + '\'' + ", driver_way='" + driver_way + '\'' + ", modify='" + modify + '\'' + ", uuid='" + uuid + '\'' + ", brand='" + brand + '\'' + ", type='" + type + '\'' + ", num='" + num + '\'' + '}';
    }
}
